<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt"%>    
 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body> 
	<form>
		<table width="100%" border=1>
			<tr>
				<td>学生学号</td>
				<td>学生姓名</td>
				<td>学生年龄</td>
			</tr>
			<c:forEach items="${page.list}" var="stu">
				<tr>
					<td>${stu.id }</td>
					<td> ${stu.name } </td>
					<td> ${stu.age} </td>
				</tr>
			</c:forEach>
		</table>
	</form>
第${page.pageNum}页,共${page.total}条记录 共${page.pages}页,
	<a href="${pageContext.request.contextPath}/student/findAll?pageNum=${page.isFirstPage?1:page.pageNum-1}&pageSize=${page.pageSize}">上一页</a>
	<a href="${pageContext.request.contextPath}/student/findAll?pageNum=${page.isLastPage?page.pages:page.pageNum+1}&pageSize=${page.pageSize}">下一页</a>
</body>
</html>